//
//  HomeFirstJieXi.m
//  Fragrance
//
//  Created by yinzhongyuan on 15/5/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "HomeFirstJieXi.h"

@implementation HomeFirstJieXi

+(NSMutableArray *)getHomeModel:(NSData *)data
{
    NSMutableArray *arr = [NSMutableArray array];
    NSError *error = nil;
    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error];
    NSDictionary *dic1 = [dic objectForKey:@"data"];
    NSArray *array = [dic1 objectForKey:@"slider"];
    for (NSDictionary *dic2 in array) {
        HomeDataModel *model = [HomeDataModel getHomeDataModel];
        model.iconName = [dic2 objectForKey:@"pcover"];
        NSLog(@"%@", model.iconName);
        model.caiTitle = [dic2 objectForKey:@"title"];
        model.detailsID = [dic2 objectForKey:@"objid"];
        [arr addObject:model];
    }
    return arr;
}





@end
